package com.study.juc;

public class UnCaughtExceptionHandlerTest {


    public static void main(String[] args) {

        
        
        
        
        Thread t1 = new Thread(()->{
            System.out.println(1/0);
        });

        
        t1.setUncaughtExceptionHandler((t,e)->{
            System.out.println(t.getName()+"SSSDDD");
            e.printStackTrace(System.err);
        });
        
        t1.start();
    }
    
}
